home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
tbbs
/
prgsourc.zip
/
FLAGS.ZIP
/
FLAG.TXT
< prev
next >
Wrap
Text File
|
1996-03-02
|
8KB
|
230 lines
┌────────────────────────────────────────────────────────────┐
│ <<<< OPTIONS >>>> │
└────────────────────────────────────────────────────────────┘
┌───────────────────────┐
│ <border> │
└───────────────────────┘
Either no line, a single line border, or a double ine border.
Valid values are:
0 = No border
1 = Single line border
2 = Double line border
This option is present with every <color> option, but may not apply
in some cases. It MUST, however, be included for compatibility.
┌───────────────────────┐
│ <color> │
└───────────────────────┘
A TDBS color string, in the format foreground/background. The "/"
is part of the string, and is required. Valid colors and codes:
BLACK N MAGENTA RB
BLUE B RED R
GREEN G BROWN/YELLOW GR
CYAN BG WHITE W
For BLINKING, add * to the foreground color code.
For HIGH INTENSITY, add + to the foreground color code.
EXAMPLE:
N/GR = BLACK foreground, BROWN background
W+/N = BRIGHT WHITE foreground, BLACK background
GR+*/R = BLINKING YELLOW foreground, RED background
┌───────────────────────┐
│ <y1>,<x1>,<y2>,<x2> │
└───────────────────────┘
Box coordinates. Screen coordinates start at 0,0 and extend to 23,79.
y1,x1 ──────────────────────────────────────────────── y1,x2
│ Top,left Top,right │
│ │
│ │
│ │
│ │
│ Bottom,left Bottom,right │
y2,x1 ──────────────────────────────────────────────── y2,x2
┌───────────────────────┐
│ <file/ident> │
└───────────────────────┘
A file or identifier listed in Sysop Flags program:
A date item
A pick list file ( in \PIKS subdirectory ), with .PIK extension
A text or ANSI file ( in \TEXT subdirectory ), with .TXT extension
There is no actual file for a date item, but it still must be listed
in Sysop Flags, with an identifier.
.PIK and .TXT files must be in the appropriate subdirectory - the
program won't waste on-line time looking for them. When noted in
Sysop Flags, and when referenced in a .AIL file, DO NOT include the
extension. The extension is supplied by the program. .ANS files may
be used, but they must be renamed to end in .TXT.
┌───────────────────────┐
│ <text> │
└───────────────────────┘
REQUIRED text string that is displayed to the user at a location
determined by Flags as appropriate. The maximum length is 30 characters,
but a shorter length is recommended in most cases.
┌───────────────────────┐
│ <fpos> │
└───────────────────────┘
The position number of the flag in the flag string. Keep in mind that
flags may be 1, 2, or 3 characters long - accidentally overwriting
another flag will cause loss of that flags stored values, while
attempting to write beyond position 70 will cause an error.
┌────────────────────────────────────────────────────────────┐
│ <<<< COMMANDS >>>> │
└────────────────────────────────────────────────────────────┘
Commands are placed in a text file, in many respects similar to
an .SDL file or .QAL file. If you've written either of these,
writing an .AIL file is a snap.
FORMAT:
Every command MUST end with a colon character ( : ).
Extra spaces are not allowed - the program runs as fast as possible,
and checking for extra spaces takes more on-line time and
more of your systems resources. In almost every circumstance,
spaces (other than trailing ones) will generate an error.
If you receive ANY type of error message, first look for
spaces that shouldn't be there.
Commas, equal, less than, greater than and slash characters where shown
in the syntax, outside of the < > delimiters, are REQUIRED.
Each element of the command must be on the line exactly as shown in
the syntax. Empty lines between elements of the command will
cause an error.
Skipped lines between commands are optional. Eliminating them may give
you a 1/100th of a second performance boost over several commands,
but that hardly seems worth the loss in readability.
Brackets [ ] shown in the syntax indicate an option - ONE OF THEM, and
only one, MUST be chosen. Do not include the brackets.
COMMAND SYNTAX and EXAMPLES:
┌──────────────────┐
│ CLEAR: │
│ <y1>,<x1> │
│ <y2>,<x2> │
│ <color>,<border> │
└──────────────────┘
Clears an area of the specified color at the specified coordinates, with
an optional border if <border> is eqaul to 1 or 2. The foregrond color is
only important if a border is desired.
EXAMPLE:
CLEAR: Clears the entire screen to BLACK, and creates a
0,0 normal intensity WHITE, single line border.
23,79
W/N,1
┌─────────────────────┐
│ SHOW:<file>=<pause> │
└─────────────────────┘
Displays a file in the same manner as a TYPE 1 command. Unlike a
TDBS program, you cannot pause indefinitely. If <pause> is set to 0,
there is no pause. Valid pauses range from 0 to 240 seconds (4 minutes).
You are responsible for including whatever "Press any key..." message
that you want your users to see, and for clearing the screen after your
mesage is displayed.
EXAMPLE:
SHOW:Welcome=0 Displays the file WELCOME.TXT., with no pause.
This is used to place a pick list, date box, or
or yes/no control inside of you text box.
SHOW:Info=120 Displays the file INFO.TXT, then waits two
minutes for a keypress. If there is none, the
next command is processed.
┌────────────────────┐
│ FLAG:<flag>=<val> │
└────────────────────┘
┌────────────────────────────┐
│ A:<str#><flag#>=[X] or [.] │
└────────────────────────────┘
┌────────────────────┐
│ PICK: <file> │
│ <y1>,<x1> │
│ <Ncolor>,<Hcolor> │
│ <y2> │
└────────────────────┘
┌────────────────────┐
│ VIEW: [A] or [U] │
│ <Ncolor>,<Hcolor> │
│ <file>=<text> │
└────────────────────┘
┌─────────────────────┐
│ DATE: │
│ <y1>,<x1> │
│ <Ncolor>,<Hcolor> │
│ <ident>=<text> │
└─────────────────────┘
Use for Date-of-Birth, or any date field. THIS VALUE IS STORED IN THREE
FLAGS, so be sure not to accidentally overrun another flag. The box is
six rows, and as long as it takes to fit the text string.
┌───────────────────────────────────────┐
│ │
│ <text string is displyed here> │
│ │
│ Date: 01/01/01 │
│ │
└───────────────────────────────────────┘
┌────────────────────┐
│ YESNO: │
│ <y1>,<X1> │
│ <Ncolor>,<Hcolor> │
│ <Y-text>/<N-text> │
└────────────────────┘
┌─────────────────────────┐
│ IF: <file/ident>=<flag> │
└─────────┬───────────────┘
┌─────────┴──────────┐
│ ELSE: │
└─────────┬──────────┘
┌─────────┴──────────┐
│ ENDIF: │
└────────────────────┘
┌────────────────────┐
│ QUIT: │
└────────────────────┘
Leave this out, and your program won't quit. Simple enough.